<%@ page language="java" contentType="text/html; charset=ISO-8859-1"   pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Manifestos</title>
	</head>
<body>

	<div class="container">
		<a href="<c:url value='/manifesto/novo'/>" class="btn btn-default">Novo Manifesto</a>
		<hr>	
		<table class="table table-hover">
			<thead>
				<tr>
					<th>#</th>
					<th>Cliente</th>
					<th>Forma de pagamento</th>
					<th>Obs</th>
				</tr>
			</thead>
			<tbody>
				
				<c:forEach items="${manifestoList}" var="m">
				
				<tr>
					<td>${m.id}</td>
					<td>${m.cliente.nome}</td>
					<td>${m.formaPagamento.descricao}</td>
					<td>${m.observacao}</td>
					<%-- <td>
						<a href="toEdit/${m.id}">Editar</a>
						<a href="excluir/${m.id}">Excluir</a>
					</td> --%>	
				</tr>
				
				</c:forEach>
				
			</tbody>
		</table>
	</div>


</body>
</html>